package com.mirei.listener;import lombok.extern.slf4j.Slf4j;import org.springframework.amqp.rabbit.annotation.RabbitListener;import org.springframework.stereotype.Component;/** * @author work模式 */@Slf4j@Componentpublic class WorkListener {    @RabbitListener(queues = "boot.work")    public void listenSimpleQueue(String msg) {        log.info("消费者收到[boot.work]队列的消息,内容:{}", msg);    }}